home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / catman / p_man / cat3 / qdir.Z / qdir
Encoding:
Text File  |  1998-10-28  |  54.3 KB  |  991 lines

  1.  
  2.  
  3.  
  4.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       QDir - Traverses directory structures    and contents in    a
  10.       platform-independent way
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <qdir.h>
  14.  
  15.     PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
  16.       QQQQDDDDiiiirrrr (((())))
  17.       QQQQDDDDiiiirrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _p_a_t_h,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e_F_i_l_t_e_r ==== 0000,,,, iiiinnnntttt
  18.           ssssoooorrrrttttSSSSppppeeeecccc ==== NNNNaaaammmmeeee ||||    IIIIggggnnnnoooorrrreeeeCCCCaaaasssseeee,,,, iiiinnnntttt    _f_i_l_t_e_r_S_p_e_c
  19.       QQQQDDDDiiiirrrr (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr &&&& ))))
  20.       ~~~~QQQQDDDDiiiirrrr    ()
  21.       QQQQDDDDiiiirrrr&&&&    ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr &&&& ))))
  22.       QQQQDDDDiiiirrrr&&&&    ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh ))))
  23.       vvvvooooiiiidddd sssseeeettttPPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh ))))
  24.       ccccoooonnnnsssstttt    cccchhhhaaaarrrr**** ppppaaaatttthhhh (((()))) ccccoooonnnnsssstttt
  25.       QQQQSSSSttttrrrriiiinnnngggg aaaabbbbssssPPPPaaaatttthhhh (((()))) ccccoooonnnnsssstttt
  26.       QQQQSSSSttttrrrriiiinnnngggg ccccaaaannnnoooonnnniiiiccccaaaallllPPPPaaaatttthhhh    (((()))) ccccoooonnnnsssstttt
  27.       QQQQSSSSttttrrrriiiinnnngggg ddddiiiirrrrNNNNaaaammmmeeee (((()))) ccccoooonnnnsssstttt
  28.       QQQQSSSSttttrrrriiiinnnngggg ffffiiiilllleeeePPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** _f_i_l_e_N_a_m_e,,,, bbbboooooooollll _a_c_c_e_p_t_A_b_s_P_a_t_h
  29.           ====    TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
  30.       QQQQSSSSttttrrrriiiinnnngggg aaaabbbbssssFFFFiiiilllleeeePPPPaaaatttthhhh ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, bbbboooooooollll
  31.           _a_c_c_e_p_t_A_b_s_P_a_t_h ==== TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
  32.       bbbboooooooollll ccccdddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _d_i_r_N_a_m_e,,,, bbbboooooooollll _a_c_c_e_p_t_A_b_s_P_a_t_h ==== TTTTRRRRUUUUEEEE ))))
  33.       bbbboooooooollll ccccddddUUUUpppp (((())))
  34.       ccccoooonnnnsssstttt    cccchhhhaaaarrrr**** nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr (((()))) ccccoooonnnnsssstttt
  35.       vvvvooooiiiidddd sssseeeettttNNNNaaaammmmeeeeFFFFiiiilllltttteeeerrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr ))))
  36.       FFFFiiiilllltttteeeerrrrSSSSppppeeeecccc ffffiiiilllltttteeeerrrr (((()))) ccccoooonnnnsssstttt
  37.       vvvvooooiiiidddd sssseeeettttFFFFiiiilllltttteeeerrrr (((( iiiinnnntttt ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ))))
  38.       SSSSoooorrrrttttSSSSppppeeeecccc ssssoooorrrrttttiiiinnnngggg (((()))) ccccoooonnnnsssstttt
  39.       vvvvooooiiiidddd sssseeeettttSSSSoooorrrrttttiiiinnnngggg (((( iiiinnnntttt    ssssoooorrrrttttSSSSppppeeeecccc ))))
  40.       bbbboooooooollll mmmmaaaattttcccchhhhAAAAllllllllDDDDiiiirrrrssss (((()))) ccccoooonnnnsssstttt
  41.       vvvvooooiiiidddd sssseeeettttMMMMaaaattttcccchhhhAAAAllllllllDDDDiiiirrrrssss (((( bbbboooooooollll ))))
  42.       uuuuiiiinnnntttt ccccoooouuuunnnntttt (((())))    ccccoooonnnnsssstttt
  43.       ccccoooonnnnsssstttt    cccchhhhaaaarrrr**** ooooppppeeeerrrraaaattttoooorrrr[[[[]]]] (((( iiiinnnntttt )))) ccccoooonnnnsssstttt
  44.       ccccoooonnnnsssstttt    QQQQSSSSttttrrrrLLLLiiiisssstttt**** eeeennnnttttrrrryyyyLLLLiiiisssstttt (((( iiiinnnntttt _f_i_l_t_e_r_S_p_e_c ==== DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,,
  45.           iiiinnnntttt _s_o_r_t_S_p_e_c ==== DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt )))) ccccoooonnnnsssstttt
  46.       ccccoooonnnnsssstttt    QQQQSSSSttttrrrrLLLLiiiisssstttt**** eeeennnnttttrrrryyyyLLLLiiiisssstttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e_F_i_l_t_e_r,,,, iiiinnnntttt
  47.           _f_i_l_t_e_r_S_p_e_c ==== DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt _s_o_r_t_S_p_e_c
  48.       ccccoooonnnnsssstttt    QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt**** eeeennnnttttrrrryyyyIIIInnnnffffooooLLLLiiiisssstttt (((( iiiinnnntttt _f_i_l_t_e_r_S_p_e_c ====
  49.           DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt _s_o_r_t_S_p_e_c ==== DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt    )))) ccccoooonnnnsssstttt
  50.       ccccoooonnnnsssstttt    QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt**** eeeennnnttttrrrryyyyIIIInnnnffffooooLLLLiiiisssstttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****
  51.           _n_a_m_e_F_i_l_t_e_r,,,, iiiinnnntttt _f_i_l_t_e_r_S_p_e_c ==== DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt _s_o_r_t_S_p_e_c
  52.       bbbboooooooollll mmmmkkkkddddiiiirrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _d_i_r_N_a_m_e,,,, bbbboooooooollll _a_c_c_e_p_t_A_b_s_P_a_t_h    ==== TTTTRRRRUUUUEEEE
  53.           ))))    ccccoooonnnnsssstttt
  54.       bbbboooooooollll rrrrmmmmddddiiiirrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _d_i_r_N_a_m_e,,,, bbbboooooooollll _a_c_c_e_p_t_A_b_s_P_a_t_h    ==== TTTTRRRRUUUUEEEE
  55.           ))))    ccccoooonnnnsssstttt
  56.       bbbboooooooollll iiiissssRRRReeeeaaaaddddaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
  57.       bbbboooooooollll eeeexxxxiiiissssttttssss (((()))) ccccoooonnnnsssstttt
  58.       bbbboooooooollll iiiissssRRRRooooooootttt (((()))) ccccoooonnnnsssstttt
  59.       bbbboooooooollll iiiissssRRRReeeellllaaaattttiiiivvvveeee (((()))) ccccoooonnnnsssstttt
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/22/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  71.  
  72.  
  73.  
  74.       vvvvooooiiiidddd ccccoooonnnnvvvveeeerrrrttttTTTTooooAAAAbbbbssss (((())))
  75.       bbbboooooooollll ooooppppeeeerrrraaaattttoooorrrr======== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr &&&& )))) ccccoooonnnnsssstttt
  76.       bbbboooooooollll ooooppppeeeerrrraaaattttoooorrrr!!!!==== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr &&&& )))) ccccoooonnnnsssstttt
  77.       bbbboooooooollll rrrreeeemmmmoooovvvveeee ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, bbbboooooooollll _a_c_c_e_p_t_A_b_s_P_a_t_h ====
  78.           TTTTRRRRUUUUEEEE ))))
  79.       bbbboooooooollll rrrreeeennnnaaaammmmeeee ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****    _n_e_w_N_a_m_e,,,, bbbboooooooollll
  80.           _a_c_c_e_p_t_A_b_s_P_a_t_h_s
  81.       bbbboooooooollll eeeexxxxiiiissssttttssss ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e,,,, bbbboooooooollll    _a_c_c_e_p_t_A_b_s_P_a_t_h ====    TTTTRRRRUUUUEEEE ))))
  82.  
  83.     SSSSttttaaaattttiiiicccc PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
  84.       QQQQSSSSttttrrrriiiinnnngggg ccccoooonnnnvvvveeeerrrrttttSSSSeeeeppppaaaarrrraaaattttoooorrrrssss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhhNNNNaaaammmmeeee ))))
  85.       ccccoooonnnnsssstttt    QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt**** ddddrrrriiiivvvveeeessss (((())))
  86.       cccchhhhaaaarrrr sssseeeeppppaaaarrrraaaattttoooorrrr (((())))
  87.       bbbboooooooollll sssseeeettttCCCCuuuurrrrrrrreeeennnntttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh ))))
  88.       QQQQDDDDiiiirrrr ccccuuuurrrrrrrreeeennnntttt (((())))
  89.       QQQQDDDDiiiirrrr hhhhoooommmmeeee (((())))
  90.       QQQQDDDDiiiirrrr rrrrooooooootttt (((())))
  91.       QQQQSSSSttttrrrriiiinnnngggg ccccuuuurrrrrrrreeeennnnttttDDDDiiiirrrrPPPPaaaatttthhhh (((())))
  92.       QQQQSSSSttttrrrriiiinnnngggg hhhhoooommmmeeeeDDDDiiiirrrrPPPPaaaatttthhhh (((())))
  93.       QQQQSSSSttttrrrriiiinnnngggg rrrroooooooottttDDDDiiiirrrrPPPPaaaatttthhhh (((())))
  94.       bbbboooooooollll mmmmaaaattttcccchhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_t_e_r,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
  95.       QQQQSSSSttttrrrriiiinnnngggg cccclllleeeeaaaannnnDDDDiiiirrrrPPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ddddiiiirrrrPPPPaaaatttthhhh ))))
  96.       bbbboooooooollll iiiissssRRRReeeellllaaaattttiiiivvvveeeePPPPaaaatttthhhh ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh ))))
  97.  
  98.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  99.       Traverses directory structures and contents in a platform-
  100.       independent way.
  101.  
  102.       A QDir can point to a    file using either a relative or    an
  103.       absolute file    path. Absolute file paths begin    with the
  104.       directory separator ('/') or a drive specification (not
  105.       applicable to    UNIX). Relative    file names begin with a
  106.       directory name or a file name    and specify a path relative to
  107.       the current directory.
  108.  
  109.       An example of    an absolute path is the    string "/tmp/quartz",
  110.       a relative path might    look like "src/fatlib".    You can    use
  111.       the function isRelative() to check if    a QDir is using    a
  112.       relative or an absolute file path. You can call the function
  113.       convertToAbs() to convert a relative QDir to an absolute
  114.       one.
  115.  
  116.       The directory    "example" under    the current directory is
  117.       checked for existence    in the example below:
  118.  
  119.           QDir d( "example"    );              // "./example"
  120.           if ( !d.exists() )
  121.           warning( "Cannot find    the example directory" );
  122.  
  123.       If you always    use '/'    as a directory separator, Qt will
  124.       translate your paths to conform to the underlying operating
  125.       system.
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 9/22/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  137.  
  138.  
  139.  
  140.       cd() and cdUp() can be used to navigate the directory    tree.
  141.       Note that the    logical    cd and cdUp operations are not
  142.       performed if the new directory does not exist.
  143.  
  144.       Example:
  145.  
  146.           QDir d = QDir::root();              // "/"
  147.           if ( !d.cd("tmp")    ) {              // "/tmp"
  148.           warning( "Cannot find    the \"/tmp\" directory"    );
  149.           }    else {
  150.           QFile    f( d.filePath("ex1.txt") );      // "/tmp/ex1.txt"
  151.           if ( !f.open(IO_ReadWrite) )
  152.               warning( "Cannot create the file %s", f.name() );
  153.           }
  154.  
  155.       To read the contents of a directory you can use the
  156.       entryList() and entryInfoList() functions.
  157.  
  158.       Example:
  159.  
  160.           #include <stdio.h>
  161.           #include <qdir.h>
  162.           //
  163.           // This program scans the    current    directory and lists all    files
  164.           // that are not symbolic links, sorted by    size with the smallest files
  165.           // first.
  166.           //
  167.           int main(    int argc, char **argv )
  168.           {
  169.           QDir d;
  170.           d.setFilter( QDir::Files | QDir::Hidden | QDir::NoSymLinks );
  171.           d.setSorting(    QDir::Size | QDir::Reversed );
  172.           const    QFileInfoList *list = d.entryInfoList();
  173.           QFileInfoListIterator    it( *list );      // create list iterator
  174.           QFileInfo *fi;              // pointer for traversing
  175.           printf( "    BYTES FILENAME\n" );      // print header
  176.           while    ( (fi=it.current()) ) {          // for each file...
  177.               printf( "%10li %s\n", fi->size(),    fi->fileName().data() );
  178.               ++it;                  // goto next list element
  179.           }
  180.           }
  181.  
  182.       Examples:  dirview/dirview.cpp
  183.  
  184.      MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  185.      QQQQDDDDiiiirrrr::::::::QQQQDDDDiiiirrrr    (((())))
  186.       Constructs a QDir pointing to    the current directory.
  187.  
  188.       See also: currentDirPath().
  189.  
  190.      QQQQDDDDiiiirrrr::::::::QQQQDDDDiiiirrrr    (((( ccccoooonnnnsssstttt    QQQQDDDDiiiirrrr &&&& dddd ))))
  191.       Constructs a QDir that is a copy of the given    directory.
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 9/22/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  203.  
  204.  
  205.  
  206.       See also: operator=().
  207.  
  208.      QQQQDDDDiiiirrrr::::::::QQQQDDDDiiiirrrr    (((( ccccoooonnnnsssstttt    cccchhhhaaaarrrr **** ppppaaaatttthhhh,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr ==== 0000,,,, iiiinnnntttt
  209.       ssssoooorrrrttttSSSSppppeeeecccc ==== NNNNaaaammmmeeee |||| IIIIggggnnnnoooorrrreeeeCCCCaaaasssseeee,,,,    iiiinnnntttt ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ==== AAAAllllllll ))))
  210.       Constructs a QDir.
  211.  
  212.       Arguments:
  213.  
  214.       _p_a_t_h is the directory.
  215.  
  216.       _n_a_m_e_F_i_l_t_e_r is    the file name filter.
  217.  
  218.      the files in the directory.
  219.       _s_o_r_t_S_p_e_c is the sort specification, which describes how to sort
  220.  
  221.      filter the    files in the directory.    Most of    these arguments
  222.      (except _p_a_t_h) have    optional values.
  223.       _f_i_l_t_e_r_S_p_e_c is    the filter specification, which    describes how to
  224.  
  225.       Example:
  226.  
  227.           // lists all files in /tmp
  228.           QDir d( "/tmp" );
  229.           for ( int    i=0; i<d.count(); i++ )
  230.           printf( "%s\n", d[i] );
  231.  
  232.       If _p_a_t_h is ""    or null, the directory is set to "." (the
  233.       current directory). If _n_a_m_e_F_i_l_t_e_r is "" or null, it is set
  234.       to "*" (all files).
  235.  
  236.       No check is made to ensure that the directory    exists.
  237.  
  238.       See also: exists(), setPath(), setNameFilter(), setFilter()
  239.       and setSorting().
  240.  
  241.      QQQQDDDDiiiirrrr::::::::~~~~QQQQDDDDiiiirrrr (((())))
  242.       Destroys the QDir and    cleans up.
  243.  
  244.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::aaaabbbbssssFFFFiiiilllleeeePPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,,    bbbboooooooollll
  245.       aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh    ==== TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
  246.       Returns the absolute path name of a file in the directory.
  247.       Does NOT check if the    file actually exists in    the directory.
  248.       Redundant multiple separators    or "." and ".."    directories in
  249.       _f_i_l_e_N_a_m_e will    NOT be removed (see cleanDirPath()).
  250.  
  251.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a _f_i_l_e_N_a_m_e starting with a
  252.       separator ('/') will be returned without change. if
  253.       _a_c_c_e_p_t_A_b_s_P_a_t_h    is FALSE an absolute path will be appended to
  254.       the directory    path.
  255.  
  256.       See also: filePath().
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 9/22/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  269.  
  270.  
  271.  
  272.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::aaaabbbbssssPPPPaaaatttthhhh (((()))) ccccoooonnnnsssstttt
  273.       Returns the absolute (a path that starts with    '/') path,
  274.       which    may contain symbolic links, but    never contains
  275.       redundant ".", ".." or multiple separators.
  276.  
  277.       See also: setPath(), canonicalPath(),    exists(),
  278.       cleanDirPath(), dirName() and    absFilePath().
  279.  
  280.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::ccccaaaannnnoooonnnniiiiccccaaaallllPPPPaaaatttthhhh (((()))) ccccoooonnnnsssstttt
  281.       Returns the canonical    path, i.e. a path without symbolic
  282.       links.
  283.  
  284.       On systems that do not have symbolic links this function
  285.       will always return the same string that absPath returns. If
  286.       the canonical    path does not exist a null string is returned.
  287.  
  288.       See also: path(), absPath(), exists(), cleanDirPath(),
  289.       dirName(), absFilePath() and QString::isNull().
  290.  
  291.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::ccccdddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** ddddiiiirrrrNNNNaaaammmmeeee,,,, bbbboooooooollll    aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh ====    TTTTRRRRUUUUEEEE ))))
  292.       Changes directory by descending into the given directory.
  293.       Returns TRUE if the new directory exists and is readable.
  294.       Note that the    logical    cd operation is    NOT performed if the
  295.       new directory    does not exist.
  296.  
  297.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a path starting with    a separator
  298.       ('/')    will cd    to the absolute    directory, if _a_c_c_e_p_t_A_b_s_P_a_t_h is
  299.       FALSE    any number of separators at the    beginning of _d_i_r_N_a_m_e
  300.       will be removed.
  301.  
  302.       Example:
  303.  
  304.         QDir d = QDir::home();  // now points to home directory
  305.         if ( !d.cd("c++") )    {   // now points to "c++" under home directory    if OK
  306.         QFileInfo fi( d, "c++" );
  307.         if ( fi.exists() ) {
  308.             if ( fi.isDir() )
  309.             warning( "Cannot cd into \"%s\".", (char*)d.absFilePath("c++") );
  310.             else
  311.             warning( "Cannot create    directory \"%s\"\n"
  312.                  "A file named \"c++\" already exists in \"%s\"",
  313.                  (const    char *)d.absFilePath("c++"),
  314.                  (const    char *)d.path()    );
  315.             return;
  316.         } else {
  317.             warning( "Creating directory \"%s\"",
  318.                  (const char *) d.absFilePath("c++") );
  319.             if ( !d.mkdir( "c++" ) ) {
  320.             warning("Could not create directory \"%s\"",
  321.                 (const char *)d.absFilePath("c++") );
  322.             return;
  323.             }
  324.  
  325.  
  326.  
  327.      Page 5                         (printed 9/22/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  335.  
  336.  
  337.  
  338.         }
  339.         }
  340.  
  341.       Calling cd( ".." ) is    equivalent to calling cdUp().
  342.  
  343.       See also: cdUp(), isReadable(), exists() and path().
  344.  
  345.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::ccccddddUUUUpppp (((())))
  346.       Changes directory by moving one directory up the path
  347.       followed to arrive at    the current directory.
  348.  
  349.       Returns TRUE if the new directory exists and is readable.
  350.       Note that the    logical    cdUp() operation is not    performed if
  351.       the new directory does not exist.
  352.  
  353.       See also: cd(), isReadable(),    exists() and path().
  354.  
  355.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::cccclllleeeeaaaannnnDDDDiiiirrrrPPPPaaaatttthhhh    (((( ccccoooonnnnsssstttt    cccchhhhaaaarrrr **** ffffiiiilllleeeePPPPaaaatttthhhh    )))) [[[[ssssttttaaaattttiiiicccc]]]]
  356.       Removes all multiple directory separators ('/') and resolves
  357.       any "." or ".." found    in the path.
  358.  
  359.       Symbolic links are kept. This    function does not return the
  360.       canonical path.
  361.  
  362.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::ccccoooonnnnvvvveeeerrrrttttSSSSeeeeppppaaaarrrraaaattttoooorrrrssss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhhNNNNaaaammmmeeee ))))
  363.       [[[[ssssttttaaaattttiiiicccc]]]]
  364.       Converts the '/' separators in _p_a_t_h_N_a_m_e to system native
  365.       separators. Returns the translated string.
  366.  
  367.       On Windows, convertSeparators("c:/winnt/system32") returns
  368.       "c:\winnt\system32".
  369.  
  370.       No conversion    is done    on UNIX.
  371.  
  372.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::ccccoooonnnnvvvveeeerrrrttttTTTTooooAAAAbbbbssss (((())))
  373.       Converts the directory path to an absolute path. If it is
  374.       already absolute nothing is done.
  375.  
  376.       See also: isRelative().
  377.  
  378.      uuuuiiiinnnntttt QQQQDDDDiiiirrrr::::::::ccccoooouuuunnnntttt (((()))) ccccoooonnnnsssstttt
  379.       Returns the number of    files that was found. Equivalent to
  380.       entryList()->count().
  381.  
  382.       See also: operator[] and entryList().
  383.  
  384.      QQQQDDDDiiiirrrr QQQQDDDDiiiirrrr::::::::ccccuuuurrrrrrrreeeennnntttt    (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  385.       Returns the current directory.
  386.  
  387.       See also: currentDirPath() and QDir::QDir().
  388.  
  389.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::ccccuuuurrrrrrrreeeennnnttttDDDDiiiirrrrPPPPaaaatttthhhh (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  390.  
  391.  
  392.  
  393.      PPPPaaaaggggeeee 6666                         ((((pppprrrriiiinnnntttteeeedddd 9999////22222222////99998888))))
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  401.  
  402.  
  403.  
  404.       Returns the absolute path of the current directory.
  405.  
  406.       See also: current().
  407.  
  408.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::ddddiiiirrrrNNNNaaaammmmeeee (((()))) ccccoooonnnnsssstttt
  409.       Returns the name of the directory, this is NOT the same as
  410.       the path, e.g. a directory with the name "mail", might have
  411.       the path "/var/spool/mail". If the directory has no name
  412.       (e.g.    the root directory) a null string is returned.
  413.  
  414.       No check is made to ensure that a directory with this    name
  415.       actually exists.
  416.  
  417.       See also: path(), absPath(), absFilePath(), exists() and
  418.       QString::isNull().
  419.  
  420.      ccccoooonnnnsssstttt QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt **** QQQQDDDDiiiirrrr::::::::ddddrrrriiiivvvveeeessss    (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  421.       Returns a list if the    root directories on this system. On
  422.       win32, this returns a    number of QFileInfo objects containing
  423.       "C:/", "D:/" etc. On other operating systems,    it returns a
  424.       list containing just one root    directory (e.g.    "/").
  425.  
  426.      ccccoooonnnnsssstttt QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt **** QQQQDDDDiiiirrrr::::::::eeeennnnttttrrrryyyyIIIInnnnffffooooLLLLiiiisssstttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****
  427.       nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ==== DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt ssssoooorrrrttttSSSSppppeeeecccc ====
  428.       DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt ))))    ccccoooonnnnsssstttt
  429.       Returns a list of QFileInfo objects for all files and
  430.       directories in the directory pointed to using    the
  431.       setSorting(),    setFilter() and    setNameFilter()
  432.       specifications.
  433.  
  434.       The the filter and sorting specifications can    be overridden
  435.       using    the _n_a_m_e_F_i_l_t_e_r,    _f_i_l_t_e_r_S_p_e_c and _s_o_r_t_S_p_e_c    arguments.
  436.  
  437.       Returns 0 if the directory is    unreadable or does not exist.
  438.  
  439.       See also: entryList(), setNameFilter(), setSorting() and
  440.       setFilter().
  441.  
  442.      ccccoooonnnnsssstttt QQQQFFFFiiiilllleeeeIIIInnnnffffooooLLLLiiiisssstttt **** QQQQDDDDiiiirrrr::::::::eeeennnnttttrrrryyyyIIIInnnnffffooooLLLLiiiisssstttt (((( iiiinnnntttt ffffiiiilllltttteeeerrrrSSSSppppeeeecccc    ====
  443.       DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt ssssoooorrrrttttSSSSppppeeeecccc ====    DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt )))) ccccoooonnnnsssstttt
  444.       Returns a list of QFileInfo objects for all files and
  445.       directories in the directory pointed to using    the
  446.       setSorting(),    setFilter() and    setNameFilter()
  447.       specifications.
  448.  
  449.       The the filter and sorting specifications can    be overridden
  450.       using    the _f_i_l_t_e_r_S_p_e_c and _s_o_r_t_S_p_e_c arguments.
  451.  
  452.       Returns 0 if the directory is    unreadable or does not exist.
  453.  
  454.       See also: entryList(), setNameFilter(), setSorting() and
  455.       setFilter().
  456.  
  457.  
  458.  
  459.      Page 7                         (printed 9/22/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  467.  
  468.  
  469.  
  470.       Examples:  dirview/dirview.cpp
  471.  
  472.      ccccoooonnnnsssstttt QQQQSSSSttttrrrrLLLLiiiisssstttt **** QQQQDDDDiiiirrrr::::::::eeeennnnttttrrrryyyyLLLLiiiisssstttt ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt
  473.       ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ==== DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt ssssoooorrrrttttSSSSppppeeeecccc ==== DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt ))))
  474.       ccccoooonnnnsssstttt
  475.       Returns a list of the    names of all files and directories in
  476.       the directory    pointed    to using the setSorting(), setFilter()
  477.       and setNameFilter() specifications.
  478.  
  479.       The the filter and sorting specifications can    be overridden
  480.       using    the _n_a_m_e_F_i_l_t_e_r,    _f_i_l_t_e_r_S_p_e_c and _s_o_r_t_S_p_e_c    arguments.
  481.  
  482.       Returns 0 if the directory is    unreadable or does not exist.
  483.  
  484.       See also: entryInfoList(), setNameFilter(), setSorting() and
  485.       setFilter().
  486.  
  487.      ccccoooonnnnsssstttt QQQQSSSSttttrrrrLLLLiiiisssstttt **** QQQQDDDDiiiirrrr::::::::eeeennnnttttrrrryyyyLLLLiiiisssstttt ((((    iiiinnnntttt ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ====
  488.       DDDDeeeeffffaaaauuuullllttttFFFFiiiilllltttteeeerrrr,,,, iiiinnnntttt ssssoooorrrrttttSSSSppppeeeecccc ====    DDDDeeeeffffaaaauuuullllttttSSSSoooorrrrtttt )))) ccccoooonnnnsssstttt
  489.       Returns a list of the    names of all files and directories in
  490.       the directory    pointed    to using the setSorting(), setFilter()
  491.       and setNameFilter() specifications.
  492.  
  493.       The the filter and sorting specifications can    be overridden
  494.       using    the _f_i_l_t_e_r_S_p_e_c and _s_o_r_t_S_p_e_c arguments.
  495.  
  496.       Returns 0 if the directory is    unreadable or does not exist.
  497.  
  498.       See also: entryInfoList(), setNameFilter(), setSorting() and
  499.       setFilter().
  500.  
  501.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::eeeexxxxiiiissssttttssss (((()))) ccccoooonnnnsssstttt
  502.       Returns TRUE if the directory    exists.    (If a file with    the
  503.       same name is found this function will    of course return
  504.       FALSE).
  505.  
  506.       See also: QFileInfo::exists()    and QFile::exists().
  507.  
  508.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::eeeexxxxiiiissssttttssss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee,,,, bbbboooooooollll aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh ==== TTTTRRRRUUUUEEEE
  509.       ))))
  510.       Checks for existence of a file.
  511.  
  512.       If _a_c_c_e_p_t_A_b_s_P_a_t_h_s is TRUE a path starting with a separator
  513.       ('/')    will check the file with the absolute path, if
  514.       _a_c_c_e_p_t_A_b_s_P_a_t_h    is FALSE any number of separators at the
  515.       beginning of _n_a_m_e will be removed.
  516.  
  517.       Returns TRUE if the file exists, otherwise FALSE.
  518.  
  519.       See also: QFileInfo::exists()    and QFile::exists().
  520.  
  521.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::ffffiiiilllleeeePPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,, bbbboooooooollll
  522.  
  523.  
  524.  
  525.      PPPPaaaaggggeeee 8888                         ((((pppprrrriiiinnnntttteeeedddd 9999////22222222////99998888))))
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  533.  
  534.  
  535.  
  536.       acceptAbsPath    = TRUE ) const
  537.       Returns the path name    of a file in the directory. Does NOT
  538.       check    if the file actually exists in the directory. If the
  539.       QDir is relative the returned    path name will also be
  540.       relative. Redundant multiple separators or "." and ".."
  541.       directories in _f_i_l_e_N_a_m_e will not be removed (see
  542.       cleanDirPath()).
  543.  
  544.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a _f_i_l_e_N_a_m_e starting with a
  545.       separator ('/') will be returned without change. If
  546.       _a_c_c_e_p_t_A_b_s_P_a_t_h    is FALSE an absolute path will be appended to
  547.       the directory    path.
  548.  
  549.       See also: absFilePath(), isRelative()    and canonicalPath().
  550.  
  551.      QQQQDDDDiiiirrrr::::::::FFFFiiiilllltttteeeerrrrSSSSppppeeeecccc QQQQDDDDiiiirrrr::::::::ffffiiiilllltttteeeerrrr(((()))) ccccoooonnnnsssstttt
  552.       Returns the value set    by setFilter()
  553.  
  554.       See also: setFilter().
  555.  
  556.      QQQQDDDDiiiirrrr QQQQDDDDiiiirrrr::::::::hhhhoooommmmeeee (((())))    [[[[ssssttttaaaattttiiiicccc]]]]
  557.       Returns the home directory.
  558.  
  559.       See also: homeDirPath().
  560.  
  561.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::hhhhoooommmmeeeeDDDDiiiirrrrPPPPaaaatttthhhh (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  562.       Returns the absolute path for    the user's home    directory,
  563.  
  564.       See also: home().
  565.  
  566.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::iiiissssRRRReeeeaaaaddddaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
  567.       Returns TRUE if the directory    is readable AND    we can open
  568.       files    by name. This function will return FALSE if only one
  569.       of these is present.
  570.  
  571.       WWWWaaaarrrrnnnniiiinnnngggg:::: A FALSE value from this function is not a guarantee
  572.       that files in    the directory are not accessible.
  573.  
  574.       See also: QFileInfo::isReadable().
  575.  
  576.       Examples:  dirview/dirview.cpp
  577.  
  578.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::iiiissssRRRReeeellllaaaattttiiiivvvveeee (((()))) ccccoooonnnnsssstttt
  579.       Returns TRUE if the directory    path is    relative to the
  580.       current directory, FALSE if the path is absolute (e.g. under
  581.       UNIX a path is relative if it    does not start with a '/').
  582.  
  583.       According to Einstein    this function should always return
  584.       TRUE.
  585.  
  586.       See also: convertToAbs().
  587.  
  588.  
  589.  
  590.  
  591.      Page 9                         (printed 9/22/98)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  599.  
  600.  
  601.  
  602.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::iiiissssRRRReeeellllaaaattttiiiivvvveeeePPPPaaaatttthhhh (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh )))) [[[[ssssttttaaaattttiiiicccc]]]]
  603.       Returns TRUE if the path is relative,    FALSE if it is
  604.       absolute.
  605.  
  606.       See also: isRelative().
  607.  
  608.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::iiiissssRRRRooooooootttt (((()))) ccccoooonnnnsssstttt
  609.       Returns TRUE if the directory    is the root directory,
  610.       otherwise FALSE.
  611.  
  612.       Note:    If the directory is a symbolic link to the root
  613.       directory this function returns FALSE. If you    want to    test
  614.       for this you can use canonicalPath():
  615.  
  616.       Example:
  617.  
  618.           QDir d( "/tmp/root_link" );
  619.           d    = d.canonicalPath();
  620.           if ( d.isRoot() )
  621.           warning( "It IS a root link!"    );
  622.  
  623.       See also: root() and rootDirPath().
  624.  
  625.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::mmmmaaaattttcccchhhh ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllltttteeeerrrr,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
  626.       [[[[ssssttttaaaattttiiiicccc]]]]
  627.       Returns TRUE if the _f_i_l_e_N_a_m_e matches the wildcard _f_i_l_t_e_r.
  628.  
  629.       See also: QRegExp.
  630.  
  631.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::mmmmaaaattttcccchhhhAAAAllllllllDDDDiiiirrrrssss (((())))    ccccoooonnnnsssstttt
  632.       Returns the value set    by setMatchAllDirs()
  633.  
  634.       See also: setMatchAllDirs().
  635.  
  636.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::mmmmkkkkddddiiiirrrr ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ddddiiiirrrrNNNNaaaammmmeeee,,,, bbbboooooooollll aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh ====
  637.       TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
  638.       Creates a directory.
  639.  
  640.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a path starting with    a separator
  641.       ('/')    will create the    absolute directory, if _a_c_c_e_p_t_A_b_s_P_a_t_h
  642.       is FALSE any number of separators at the beginning of
  643.       _d_i_r_N_a_m_e will be removed.
  644.  
  645.       Returns TRUE if successful, otherwise    FALSE.
  646.  
  647.       See also: rmdir().
  648.  
  649.      ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** QQQQDDDDiiiirrrr::::::::nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr (((()))) ccccoooonnnnsssstttt
  650.       Returns the string set by setNameFilter()
  651.  
  652.       See also: setNameFilter().
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                         (printed 9/22/98)
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  665.  
  666.  
  667.  
  668.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::ooooppppeeeerrrraaaattttoooorrrr!!!!==== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr    &&&& dddd )))) ccccoooonnnnsssstttt
  669.       Returns TRUE if the _d    and this dir havee different path or
  670.       different sort/filter    settings, otherwise FALSE.
  671.  
  672.      QQQQDDDDiiiirrrr &&&& QQQQDDDDiiiirrrr::::::::ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr &&&& dddd ))))
  673.       Makes    a copy of d and    assigns    it to this QDir.
  674.  
  675.      QQQQDDDDiiiirrrr &&&& QQQQDDDDiiiirrrr::::::::ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaatttthhhh    ))))
  676.       Sets the directory path to be    the given path.
  677.  
  678.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::ooooppppeeeerrrraaaattttoooorrrr======== (((( ccccoooonnnnsssstttt QQQQDDDDiiiirrrr    &&&& dddd )))) ccccoooonnnnsssstttt
  679.       Returns TRUE if the _d    and this dir have the same path    and
  680.       all sort and filter settings are equal, otherwise FALSE.
  681.  
  682.      ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** QQQQDDDDiiiirrrr::::::::ooooppppeeeerrrraaaattttoooorrrr[[[[]]]] (((( iiiinnnntttt iiiinnnnddddeeeexxxx )))) ccccoooonnnnsssstttt
  683.       Returns the file name    at position _i_n_d_e_x in the list of found
  684.       file names. Equivalent to entryList()->at(index).
  685.  
  686.       Returns null if the _i_n_d_e_x is out of range or if the
  687.       entryList() function failed.
  688.  
  689.       See also: count() and    entryList().
  690.  
  691.      ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** QQQQDDDDiiiirrrr::::::::ppppaaaatttthhhh (((())))    ccccoooonnnnsssstttt
  692.       Returns the path, this may contain symbolic links, but never
  693.       contains redundant ".", ".." or multiple separators.
  694.  
  695.       The returned path can    be either absolute or relative (see
  696.       setPath()).
  697.  
  698.       See also: setPath(), absPath(), exists(), cleanDirPath(),
  699.       dirName(), absFilePath() and convertSeparators().
  700.  
  701.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::rrrreeeemmmmoooovvvveeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,,    bbbboooooooollll aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh ====
  702.       TTTTRRRRUUUUEEEE ))))
  703.       Removes a file.
  704.  
  705.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a path starting with    a separator
  706.       ('/')    will remove the    file with the absolute path, if
  707.       _a_c_c_e_p_t_A_b_s_P_a_t_h    is FALSE any number of separators at the
  708.       beginning of _f_i_l_e_N_a_m_e    will be    removed.
  709.  
  710.       Returns TRUE if successful, otherwise    FALSE.
  711.  
  712.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::rrrreeeennnnaaaammmmeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnneeeewwwwNNNNaaaammmmeeee,,,, bbbboooooooollll
  713.       aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhhssss ==== TTTTRRRRUUUUEEEE    ))))
  714.       Renames a file.
  715.  
  716.       If _a_c_c_e_p_t_A_b_s_P_a_t_h_s is TRUE a path starting with a separator
  717.       ('/')    will rename the    file with the absolute path, if
  718.       _a_c_c_e_p_t_A_b_s_P_a_t_h    is FALSE any number of separators at the
  719.       beginning of _n_a_m_e will be removed.
  720.  
  721.  
  722.  
  723.      Page 11                         (printed 9/22/98)
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  731.  
  732.  
  733.  
  734.       Returns TRUE if successful, otherwise    FALSE.
  735.  
  736.       On most file systems,    rename() fails only if oldName does
  737.       not exist or if _n_e_w_N_a_m_e and _o_l_d_N_a_m_e are not on the same
  738.       partition, but there are also    other reasons why rename() can
  739.       fail.    For example, on    at least one file system rename()
  740.       fails    if newName points to an    open file.
  741.  
  742.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::rrrrmmmmddddiiiirrrr ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ddddiiiirrrrNNNNaaaammmmeeee,,,, bbbboooooooollll aaaacccccccceeeeppppttttAAAAbbbbssssPPPPaaaatttthhhh ====
  743.       TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
  744.       Removes a directory.
  745.  
  746.       If _a_c_c_e_p_t_A_b_s_P_a_t_h is TRUE a path starting with    a separator
  747.       ('/')    will remove the    absolute directory, if _a_c_c_e_p_t_A_b_s_P_a_t_h
  748.       is FALSE any number of separators at the beginning of
  749.       _d_i_r_N_a_m_e will be removed.
  750.  
  751.       The directory    must be    empty for rmdir() to succeed.
  752.  
  753.       Returns TRUE if successful, otherwise    FALSE.
  754.  
  755.       See also: mkdir().
  756.  
  757.      QQQQDDDDiiiirrrr QQQQDDDDiiiirrrr::::::::rrrrooooooootttt (((())))    [[[[ssssttttaaaattttiiiicccc]]]]
  758.       Returns the root directory.
  759.  
  760.       See also: rootDirPath() and drives().
  761.  
  762.      QQQQSSSSttttrrrriiiinnnngggg QQQQDDDDiiiirrrr::::::::rrrroooooooottttDDDDiiiirrrrPPPPaaaatttthhhh (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  763.       Returns the absolute path for    the root directory ("/"    under
  764.       UNIX).
  765.  
  766.       See also: root() and drives().
  767.  
  768.      cccchhhhaaaarrrr QQQQDDDDiiiirrrr::::::::sssseeeeppppaaaarrrraaaattttoooorrrr (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
  769.       Returns the native directory separator; '/' under UNIX and
  770.       '\' under MS-DOS, Windows NT and OS/2.
  771.  
  772.       You do not need to use this function to build    file paths. If
  773.       you always use '/', Qt will translate    your paths to conform
  774.       to the underlying operating system.
  775.  
  776.      bbbboooooooollll QQQQDDDDiiiirrrr::::::::sssseeeettttCCCCuuuurrrrrrrreeeennnntttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** ppppaaaatttthhhh )))) [[[[ssssttttaaaattttiiiicccc]]]]
  777.       Sets the the current directory. Returns TRUE if successful.
  778.  
  779.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::sssseeeettttFFFFiiiilllltttteeeerrrr (((( iiiinnnntttt    ffffiiiilllltttteeeerrrrSSSSppppeeeecccc ))))
  780.       Sets the filter used by entryList() and entryInfoList(). The
  781.       filter is used to specify the    kind of    files that should be
  782.       returned by entryList() and entryInfoList(). The filter is
  783.       specified by or-ing values from the enum FilterSpec. The
  784.       different values are:
  785.  
  786.  
  787.  
  788.  
  789.      Page 12                         (printed 9/22/98)
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  797.  
  798.  
  799.  
  800.       Dirs
  801.           List directories only.
  802.  
  803.       Files
  804.           List files only.
  805.  
  806.       Drives
  807.           List drives.
  808.  
  809.       NoSymLinks
  810.           Do not list symbolic links.
  811.  
  812.       Readable
  813.           List files with read permission.
  814.  
  815.       Writable
  816.           List files with write permission.
  817.  
  818.       Executable
  819.           List files with execute permission.
  820.  
  821.       Setting none of the three flags above    is equivalent to
  822.       setting all of them.
  823.  
  824.       Modified
  825.           Only list    files that have    been modified (does nothing
  826.           under UNIX).
  827.  
  828.       Hidden
  829.           List hidden files    also (.* under UNIX).
  830.  
  831.       System
  832.           List system files    (does nothing under UNIX).
  833.  
  834.       See also: nameFilter().
  835.  
  836.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::sssseeeettttMMMMaaaattttcccchhhhAAAAllllllllDDDDiiiirrrrssss    (((( bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
  837.       If _e_n_a_b_l_e is TRUE, all directories will be listed (even if
  838.       they do not match the    filter or the name filter), otherwise
  839.       only matched directories will    be listed.
  840.  
  841.       See also: matchAllDirs().
  842.  
  843.       Bugs and limitations:
  844.  
  845.      included (the name    filter will be ignored as expected).
  846.       Currently, directories that do not match the filter will not be
  847.  
  848.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::sssseeeettttNNNNaaaammmmeeeeFFFFiiiilllltttteeeerrrr ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeeeFFFFiiiilllltttteeeerrrr    ))))
  849.       Sets the name    filter used by entryList() and
  850.       entryInfoList().
  851.  
  852.  
  853.  
  854.  
  855.      Page 13                         (printed 9/22/98)
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  863.  
  864.  
  865.  
  866.       The name filter is a wildcarding filter that understands "*"
  867.       and "?" wildcards, if    you want entryList() and
  868.       entryInfoList() to list all files ending with    ".cpp",    you
  869.       simply call dir.setNameFilter("*.cpp");
  870.  
  871.       See also: nameFilter().
  872.  
  873.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::sssseeeettttPPPPaaaatttthhhh    (((( ccccoooonnnnsssstttt    cccchhhhaaaarrrr **** ppppaaaatttthhhh ))))
  874.       Sets the path    of the directory. The path is cleaned of
  875.       redundant ".", ".." and multiple separators. No check    is
  876.       made to ensure that a    directory with this path exists.
  877.  
  878.       The path can be either absolute or relative. Absolute    paths
  879.       begin    with the directory separator ('/') or a    drive
  880.       specification    (not applicable    to UNIX). Relative file    names
  881.       begin    with a directory name or a file    name and specify a
  882.       path relative    to the current directory. An example of    an
  883.       absolute path    is the string "/tmp/quartz", a relative    path
  884.       might    look like "src/fatlib".    You can    use the    function
  885.       isRelative() to check    if a QDir is using a relative or an
  886.       absolute file    path. You can call the function    convert
  887.       ToAbs() to convert a relative    QDir to    an absolute one.
  888.  
  889.       See also: path(), absPath(), exists, cleanDirPath(),
  890.       dirName(), absFilePath(), isRelative() and convertToAbs().
  891.  
  892.      vvvvooooiiiidddd QQQQDDDDiiiirrrr::::::::sssseeeettttSSSSoooorrrrttttiiiinnnngggg (((( iiiinnnntttt ssssoooorrrrttttSSSSppppeeeecccc ))))
  893.       Sets the sorting order used by entryList() and
  894.       entryInfoList().
  895.  
  896.       The _s_o_r_t_S_p_e_c is specified by or-ing values from the enum
  897.       SortSpec. The    different values are:
  898.  
  899.       One of these:
  900.  
  901.       Name
  902.           Sort by name (alphabetical order).
  903.  
  904.       Time
  905.           Sort by time (most recent    first).
  906.  
  907.       Size
  908.           Sort by size (largest first).
  909.  
  910.       Unsorted
  911.           Use the operating    system order (UNIX does    NOT sort
  912.           alphabetically).
  913.  
  914.       ORed with zero or more of these:
  915.  
  916.       DirsFirst
  917.           Always put directory names first.
  918.  
  919.  
  920.  
  921.      Page 14                         (printed 9/22/98)
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.      QQQQDDDDiiiirrrr((((3333qqqqtttt))))        TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))         QQQQDDDDiiiirrrr((((3333qqqqtttt))))
  929.  
  930.  
  931.  
  932.       Reversed
  933.           Reverse sort order.
  934.  
  935.       IgnoreCase
  936.           Ignore case when sorting by name.
  937.  
  938.      QQQQDDDDiiiirrrr::::::::SSSSoooorrrrttttSSSSppppeeeecccc QQQQDDDDiiiirrrr::::::::ssssoooorrrrttttiiiinnnngggg(((()))) ccccoooonnnnsssstttt
  939.       Returns the value set    by setSorting()
  940.  
  941.       See also:  setSorting().
  942.  
  943.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  944.       hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqddddiiiirrrr....hhhhttttmmmmllll
  945.  
  946.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  947.       Copyright 1992-1997 Troll Tech AS.  See the LICENSE file
  948.       included in the distribution for a complete license
  949.       statement.
  950.  
  951.      AAAAUUUUTTTTHHHHOOOORRRR
  952.       Generated automatically from the source code.
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.      Page 15                         (printed 9/22/98)
  988.  
  989.  
  990.  
  991.